package com.easylinkin.linkappapi.progress.entity.vo;

import cn.hutool.core.date.DateUtil;
import com.easylinkin.linkappapi.progress.entity.dto.ProgressInfoDTO;
//import com.easylinkin.linkappapi.systemsettings.entity.BimIntegrateItem;
import lombok.Data;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * 进度任务计划vo
 *
 * @author zwmac
 */
@Data
public class ProgressInfoVo extends ProgressInfoDTO {
//    /**
//     * 成功的集成项
//     */
//    private List<BimIntegrateItem> successIntegrateList;
//
//    /**
//     * 失败的集成项
//     */
//    private List<BimIntegrateItem> failIntegrateList;

    /**
     * 父级ids
     */
    private List<String> parentIdsList;

    /**
     * 父级名称
     */
    private Long progressPlanId;

    /**
     * 创建Excel示例
     *
     * @return excel示例数据
     */
    public static List<Map<String, Object>> creatExcel() {
        List<Map<String, Object>> list = new ArrayList<>();
        Map<String, Object> progressInfo = new HashMap<>();
        progressInfo.put("code", "1");
        progressInfo.put("name", "计划任务1");
        progressInfo.put("totalWork", "2");
        progressInfo.put("startTime", DateUtil.format(DateUtil.date(), "yyyy/MM/dd"));
        progressInfo.put("endTime", DateUtil.format(DateUtil.date(), "yyyy/MM/dd"));
        progressInfo.put("beforeWork", "FS");
        Map<String, Object> progressInfo2 = new HashMap<>();
        progressInfo2.put("code", "2");
        progressInfo2.put("name", "计划任务1-1");
        progressInfo2.put("totalWork", "1");
        progressInfo2.put("startTime", DateUtil.format(DateUtil.date(), "yyyy年MM月dd"));
        progressInfo2.put("endTime", DateUtil.format(DateUtil.date(), "yyyy年MM月dd"));
        progressInfo2.put("beforeWork", "DW");
        Map<String, Object> progressInfo3 = new HashMap<>();
        progressInfo3.put("code", "3");
        progressInfo3.put("name", "计划任务1-1-1");
        progressInfo3.put("totalWork", "1");
        progressInfo3.put("startTime", DateUtil.format(DateUtil.date(), "yyyy年MM月dd"));
        progressInfo3.put("endTime", DateUtil.format(DateUtil.date(), "yyyy年MM月dd"));
        progressInfo3.put("beforeWork", "DW1");
        Map<String, Object> progressInfo4 = new HashMap<>();
        progressInfo4.put("code", "2");
        progressInfo4.put("name", "计划任务1-2");
        progressInfo4.put("totalWork", "1");
        progressInfo4.put("startTime", DateUtil.format(DateUtil.date(), "yyyy年MM月dd"));
        progressInfo4.put("endTime", DateUtil.format(DateUtil.date(), "yyyy年MM月dd"));
        progressInfo4.put("beforeWork", "DW1");
        list.add(progressInfo);
        list.add(progressInfo2);
        list.add(progressInfo3);
        list.add(progressInfo4);

        return list;
    }
}
